<?php
include 'db.php';
	
$sessionid=$_GET['s'];

$q=mysql_query("SELECT rating FROM sessions WHERE sessionid={$sessionid}");

while($data = mysql_fetch_row($q))
	echo "$data[0]".PHP_EOL;
mysql_close($link);
?>
